<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.cys.bean.User,com.cys.dao.UserDao"%>
<%
	request.setCharacterEncoding("UTF-8");
	String name = request.getParameter("uname");//获取注册用户名
	String pwd = request.getParameter("pwd"); //获取注册用户的密
	boolean res = UserDao.getInstance().checkLogin(name, pwd);
	if (res) {
		request.getRequestDispatcher("main.jsp").forward(request, response);
	} else {
		response.sendRedirect("index.jsp");
	}
%>